<!--
 * @Author: huangyanming
 * @Date: 2021/01/22 17:52:57
 * @LastEditors: huangyanming
 * @LastEditTime: 2021/01/22 21:59:36
 * @Description: 描述
-->
<template>
  <Panel title="头部轮播图" :class="$style.panel">
    <section :class="$style.content">
      <Slider :cname="$style.slider" :items="items"></Slider>
    </section>
  </Panel>
</template>

<script>
import Panel from "../core/panel.vue";
import Slider from "../core/slider.vue";
export default {
  data() {
    return {
      items: [
        {
          href: "home1",
          src:
            "//img12.360buyimg.com/jrpmobile/jfs/t11149/181/856008463/68797/dc303e9/59f97baeN3cdae084.jpg?width=750&height=400",
        },
        {
          href: "home2",
          src:
            "//img12.360buyimg.com/jrpmobile/jfs/t9994/205/2575467053/189117/125e7b05/59f97c36N7599be57.png?width=750&height=400",
        },
      ],
    };
  },
  components: { Slider, Panel },
};
</script>

<style lang="scss" module>
@import "../../css/element.scss";
.panel {
  @include panel;
  & > h4 {
    display: none;
  }
  .content {
    .slider {
      margin-top: 120px;
      img {
        width: 100%;
      }
    }
  }
}
</style>
